# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=py3-funcy
_pkgname=funcy
pkgver=2.0
pkgrel=1
pkgdesc="A fancy and practical functional tools"
url="https://github.com/Suor/funcy"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
checkdepends="py3-pytest py3-whatever"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Suor/funcy/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # dep py3-whatever unavailable

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest .
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
32ed7b52c59af8d5a1f53e9da7dd48d4915afb7eaa995dbee2c88ddbf29081c7381d03b5fb734a27a358e5352b9066cc59c1fc7c1036805621c04962c0c1469e  py3-funcy-2.0.tar.gz
"
